import React from 'react'
import Layout from "../components/Layout"
import Header from "../components/controlers/HeaderControler"
import Aside from "../components/Aside"
import styles from "./index.css"

export default function index(props) {
    if (props.location.pathname === "/login"){
        return props.children
    }else{
        return (
            <Layout
                header={<Header/>}
                aside={<Aside />}
                main={<div className={styles.main}> 
                    {props.children}
                </div>}
            />
        )
    }
    
    
}
